package com.TPNexus.model;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ConversationScoped;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;

@Named
@SessionScoped
public class CatalogItem implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long catalogItemId;
	private Product product;
	private double price;
	private String currency;
	private int supplierId;
	private boolean status;
	
	
	@PostConstruct
	public void init() {
		product = new Product();
	}
	
	public CatalogItem(){
		product = new Product();
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public int getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(int supplierId) {
		this.supplierId = supplierId;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public CatalogItem(Product product, double price, String currency,
			int supplierId, boolean status) {
		super();
		this.product = product;
		this.price = price;
		this.currency = currency;
		this.supplierId = supplierId;
		this.status = status;
	}



	public long getCatalogItemId() {
		return catalogItemId;
	}

	public void setCatalogItemId(long catalogItemId) {
		this.catalogItemId = catalogItemId;
	}
}
